<html>
<head><meta charset="utf-8"><title>working directory and x.py · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/working.20directory.20and.20x.2Epy.html">working directory and x.py</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="221337140"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/working%20directory%20and%20x.py/near/221337140" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/working.20directory.20and.20x.2Epy.html#221337140">(Jan 01 2021 at 05:42)</a>:</h4>
<p><span class="user-mention" data-user-id="116083">@pnkfelix</span> you're the only one I see regularly using different directories when running x.py. What do you think about sharing a build cache (<em>not</em> a config.toml) between directories? That would avoid having to recompile everything whenever you move to a new directory.</p>
<p>(See also <a href="https://github.com/rust-lang/rust/pull/71994#issuecomment-625500054">https://github.com/rust-lang/rust/pull/71994#issuecomment-625500054</a>; originally that PR changed all x.py invocations to use the top-level build/ directory.)</p>



<a name="221337845"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/working%20directory%20and%20x.py/near/221337845" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/working.20directory.20and.20x.2Epy.html#221337845">(Jan 01 2021 at 06:04)</a>:</h4>
<p>Would the cache be smart enough to not reuse objects that resulted from differing configurations? Otherwise I don’t see how that makes things simpler ?</p>



<a name="221338286"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/working%20directory%20and%20x.py/near/221338286" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/working.20directory.20and.20x.2Epy.html#221338286">(Jan 01 2021 at 06:21)</a>:</h4>
<p>Hmm, what if it shared the cache only when there's no config file in the current directory? I guess you might not use that often but I could see other people doing so.</p>



<a name="221338340"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/working%20directory%20and%20x.py/near/221338340" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/working.20directory.20and.20x.2Epy.html#221338340">(Jan 01 2021 at 06:22)</a>:</h4>
<p>Probably this is very low priority, it just bugs me <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>